package com.meichis.yndms.vm;

import androidx.lifecycle.MutableLiveData;

import com.meichis.yndms.model.Account;
import com.meichis.yndms.repository.manager.AcountManager;

/**
 * @author xmy
 * @title
 * @remake
 * @create 2021-05-08 15:26
 */
public class AccountVM extends MyViewModel {
    private MutableLiveData<Account> account;


    public MutableLiveData<Account> getAccount() {
        if (account == null){
            account = new MutableLiveData<>();
        }
        return account;
    }


    public void GetCurrentAccount(){
        AcountManager.getInstance().GetCurrentAccount(getShowDialog(),getUserInfo().getValue().getOrgId(),getAccount());
    }

}
